Integrand size = 22, antiderivative size = 124 \[ \int (e x)^{-1+2 n} \left (a+b \text {csch}\left (c+d x^n\right )\right ) \, dx=\frac {a (e x)^{2 n}}{2 e n}-\frac {2 b x^{-n} (e x)^{2 n} \text {arctanh}\left (e^{c+d x^n}\right )}{d e n}-\frac {b x^{-2 n} (e x)^{2 n} \operatorname {PolyLog}\left (2,-e^{c+d x^n}\right )}{d^2 e n}+\frac {b x^{-2 n} (e x)^{2 n} \operatorname {PolyLog}\left (2,e^{c+d x^n}\right )}{d^2 e n} \]
[Out]
Time = 0.08 (sec) , antiderivative size = 124, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.273, Rules used = {14, 5549, 5545, 4267, 2317, 2438} \[ \int (e x)^{-1+2 n} \left (a+b \text {csch}\left (c+d x^n\right )\right ) \, dx=\frac {a (e x)^{2 n}}{2 e n}-\frac {2 b x^{-n} (e x)^{2 n} \text {arctanh}\left (e^{c+d x^n}\right )}{d e n}-\frac {b x^{-2 n} (e x)^{2 n} \operatorname {PolyLog}\left (2,-e^{d x^n+c}\right )}{d^2 e n}+\frac {b x^{-2 n} (e x)^{2 n} \operatorname {PolyLog}\left (2,e^{d x^n+c}\right )}{d^2 e n} \]
[In]
[Out]
Rule 14
Rule 2317
Rule 2438
Rule 4267
Rule 5545
Rule 5549
Rubi steps \begin{align*} \text {integral}& = \int \left (a (e x)^{-1+2 n}+b (e x)^{-1+2 n} \text {csch}\left (c+d x^n\right )\right ) \, dx \\ & = \frac {a (e x)^{2 n}}{2 e n}+b \int (e x)^{-1+2 n} \text {csch}\left (c+d x^n\right ) \, dx \\ & = \frac {a (e x)^{2 n}}{2 e n}+\frac {\left (b x^{-2 n} (e x)^{2 n}\right ) \int x^{-1+2 n} \text {csch}\left (c+d x^n\right ) \, dx}{e} \\ & = \frac {a (e x)^{2 n}}{2 e n}+\frac {\left (b x^{-2 n} (e x)^{2 n}\right ) \text {Subst}\left (\int x \text {csch}(c+d x) \, dx,x,x^n\right )}{e n} \\ & = \frac {a (e x)^{2 n}}{2 e n}-\frac {2 b x^{-n} (e x)^{2 n} \text {arctanh}\left (e^{c+d x^n}\right )}{d e n}-\frac {\left (b x^{-2 n} (e x)^{2 n}\right ) \text {Subst}\left (\int \log \left (1-e^{c+d x}\right ) \, dx,x,x^n\right )}{d e n}+\frac {\left (b x^{-2 n} (e x)^{2 n}\right ) \text {Subst}\left (\int \log \left (1+e^{c+d x}\right ) \, dx,x,x^n\right )}{d e n} \\ & = \frac {a (e x)^{2 n}}{2 e n}-\frac {2 b x^{-n} (e x)^{2 n} \text {arctanh}\left (e^{c+d x^n}\right )}{d e n}-\frac {\left (b x^{-2 n} (e x)^{2 n}\right ) \text {Subst}\left (\int \frac {\log (1-x)}{x} \, dx,x,e^{c+d x^n}\right )}{d^2 e n}+\frac {\left (b x^{-2 n} (e x)^{2 n}\right ) \text {Subst}\left (\int \frac {\log (1+x)}{x} \, dx,x,e^{c+d x^n}\right )}{d^2 e n} \\ & = \frac {a (e x)^{2 n}}{2 e n}-\frac {2 b x^{-n} (e x)^{2 n} \text {arctanh}\left (e^{c+d x^n}\right )}{d e n}-\frac {b x^{-2 n} (e x)^{2 n} \operatorname {PolyLog}\left (2,-e^{c+d x^n}\right )}{d^2 e n}+\frac {b x^{-2 n} (e x)^{2 n} \operatorname {PolyLog}\left (2,e^{c+d x^n}\right )}{d^2 e n} \\ \end{align*}
Time = 0.55 (sec) , antiderivative size = 175, normalized size of antiderivative = 1.41 \[ \int (e x)^{-1+2 n} \left (a+b \text {csch}\left (c+d x^n\right )\right ) \, dx=\frac {x^{-2 n} (e x)^{2 n} \left (a d^2 x^{2 n}+2 b c \log \left (1-e^{-c-d x^n}\right )+2 b d x^n \log \left (1-e^{-c-d x^n}\right )-2 b c \log \left (1+e^{-c-d x^n}\right )-2 b d x^n \log \left (1+e^{-c-d x^n}\right )-2 b c \log \left (\tanh \left (\frac {1}{2} \left (c+d x^n\right )\right )\right )+2 b \operatorname {PolyLog}\left (2,-e^{-c-d x^n}\right )-2 b \operatorname {PolyLog}\left (2,e^{-c-d x^n}\right )\right )}{2 d^2 e n} \]
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.80 (sec) , antiderivative size = 326, normalized size of antiderivative = 2.63
method | result | size |
risch | \(\frac {a x \,{\mathrm e}^{\frac {\left (2 n -1\right ) \left (-i \operatorname {csgn}\left (i e \right ) \operatorname {csgn}\left (i x \right ) \operatorname {csgn}\left (i e x \right ) \pi +i \operatorname {csgn}\left (i e \right ) \operatorname {csgn}\left (i e x \right )^{2} \pi +i \operatorname {csgn}\left (i x \right ) \operatorname {csgn}\left (i e x \right )^{2} \pi -i \operatorname {csgn}\left (i e x \right )^{3} \pi +2 \ln \left (e \right )+2 \ln \left (x \right )\right )}{2}}}{2 n}+\frac {2 b \,{\mathrm e}^{-i \pi n \,\operatorname {csgn}\left (i e \right ) \operatorname {csgn}\left (i x \right ) \operatorname {csgn}\left (i e x \right )} {\mathrm e}^{i \pi n \,\operatorname {csgn}\left (i e \right ) \operatorname {csgn}\left (i e x \right )^{2}} {\mathrm e}^{i \pi n \,\operatorname {csgn}\left (i x \right ) \operatorname {csgn}\left (i e x \right )^{2}} {\mathrm e}^{-i \pi n \operatorname {csgn}\left (i e x \right )^{3}} {\mathrm e}^{\frac {i \operatorname {csgn}\left (i e \right ) \operatorname {csgn}\left (i x \right ) \operatorname {csgn}\left (i e x \right ) \pi }{2}} {\mathrm e}^{-\frac {i \operatorname {csgn}\left (i e \right ) \operatorname {csgn}\left (i e x \right )^{2} \pi }{2}} {\mathrm e}^{-\frac {i \operatorname {csgn}\left (i x \right ) \operatorname {csgn}\left (i e x \right )^{2} \pi }{2}} {\mathrm e}^{\frac {i \operatorname {csgn}\left (i e x \right )^{3} \pi }{2}} e^{2 n} {\mathrm e}^{c} \left (\frac {\left (\ln \left (1-{\mathrm e}^{c +d \,x^{n}}\right )-\ln \left ({\mathrm e}^{c +d \,x^{n}}+1\right )\right ) d \,x^{n} {\mathrm e}^{-c}}{2}+\frac {\left (\operatorname {dilog}\left (1-{\mathrm e}^{c +d \,x^{n}}\right )-\operatorname {dilog}\left ({\mathrm e}^{c +d \,x^{n}}+1\right )\right ) {\mathrm e}^{-c}}{2}\right )}{e n \,d^{2}}\) | \(326\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 555 vs. \(2 (121) = 242\).
Time = 0.30 (sec) , antiderivative size = 555, normalized size of antiderivative = 4.48 \[ \int (e x)^{-1+2 n} \left (a+b \text {csch}\left (c+d x^n\right )\right ) \, dx=\text {Too large to display} \]
[In]
[Out]
\[ \int (e x)^{-1+2 n} \left (a+b \text {csch}\left (c+d x^n\right )\right ) \, dx=\int \left (e x\right )^{2 n - 1} \left (a + b \operatorname {csch}{\left (c + d x^{n} \right )}\right )\, dx \]
[In]
[Out]
\[ \int (e x)^{-1+2 n} \left (a+b \text {csch}\left (c+d x^n\right )\right ) \, dx=\int { {\left (b \operatorname {csch}\left (d x^{n} + c\right ) + a\right )} \left (e x\right )^{2 \, n - 1} \,d x } \]
[In]
[Out]
\[ \int (e x)^{-1+2 n} \left (a+b \text {csch}\left (c+d x^n\right )\right ) \, dx=\int { {\left (b \operatorname {csch}\left (d x^{n} + c\right ) + a\right )} \left (e x\right )^{2 \, n - 1} \,d x } \]
[In]
[Out]
Timed out. \[ \int (e x)^{-1+2 n} \left (a+b \text {csch}\left (c+d x^n\right )\right ) \, dx=\int \left (a+\frac {b}{\mathrm {sinh}\left (c+d\,x^n\right )}\right )\,{\left (e\,x\right )}^{2\,n-1} \,d x \]
[In]
[Out]